import Vue from 'vue'
import App from './App.vue'
import router from "@/router";
import store from "@/store";
import toast from "@/components/common/toast";
import FastClick from 'fastclick'
import VueLazyload from "vue-lazyload";

Vue.config.productionTip = false
Vue.prototype.$bus = new Vue();
//安装toast插件
Vue.use(toast)
//解决移动端300ms延迟
FastClick.attach(document.body)

//使用懒加载的插件
Vue.use(VueLazyload, {
  //传入占位图
  loading: require('@/assets/img/common/loading.gif')
})

new Vue({
  render: h => h(App),
  router,
  store,
  toast
}).$mount('#app')
